package com.github.pig.admin.model.tsjy;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 投诉建议记录表
 * </p>
 *
 * @author lxm
 * @since 2018-06-22
 */
@TableName("suggest_record")
@Alias("sugg")
public class SuggestRecord extends Model<SuggestRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * 投诉建议状态
     */
    private String status;
    @TableField(exist = false)
    private String statusName;
    /**
     * 业主ID
     */
    @TableField("owner_id")
    private String ownerId;
    @TableField(exist = false)
    private String ownerName;
    /**
     * 房屋ID
     */
    @TableField("house_id")
    private String houseId;
    @TableField(exist = false)
    private String houseName;
    /**
     * 提出时间
     */
    @TableField("suggest_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date suggestTime;
    /**
     * 内容描述
     */
    private String description;
    /**
     * 受理时间
     */
    @TableField("accept_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date acceptTime;
    /**
     * 受理人
     */
    @TableField("accept_user")
    private String acceptUser;
    @TableField(exist = false)
    private String acceptUserName;
    /**
     * 回复内容
     */
    @TableField("result_description")
    private String resultDescription;
    /**
     * 删除标志
     */
    @TableField("del_flag")
    private String delFlag;
    @TableField("unit_id")
    private String unitId;
    @TableField("building_id")
    private String buildingId;
    @TableField("community_id")
    private String communityId;
    @TableField(exist = false)
    private String unitName;
    @TableField(exist = false)
    private String buildingName;
    @TableField(exist = false)
    private String communityName;

    /**
     * 类型
     */
    @TableField("suggest_type")
    private String suggestType;
    @TableField(exist = false)
    private String typeName;
    /**
     * 满意度
     */
    @TableField("appraise_result")
    private String appraiseResult;
    @TableField(exist = false)
    private String appraiseResultName;
    /**
     * 评价内容描述
     */
    private String appraise;

    /**
     * 投诉建议事项
     */
    @TableField("suggest_item")
    private String suggestItem;
    @TableField(exist = false)
    private String suggestItemName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Date getSuggestTime() {
        return suggestTime;
    }

    public void setSuggestTime(Date suggestTime) {
        this.suggestTime = suggestTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public String getAcceptUser() {
        return acceptUser;
    }

    public void setAcceptUser(String acceptUser) {
        this.acceptUser = acceptUser;
    }

    public String getResultDescription() {
        return resultDescription;
    }

    public void setResultDescription(String resultDescription) {
        this.resultDescription = resultDescription;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getAcceptUserName() {
        return acceptUserName;
    }

    public void setAcceptUserName(String acceptUserName) {
        this.acceptUserName = acceptUserName;
    }

    public String getSuggestType() {
        return suggestType;
    }

    public void setSuggestType(String suggestType) {
        this.suggestType = suggestType;
    }

    public String getAppraiseResult() {
        return appraiseResult;
    }

    public void setAppraiseResult(String appraiseResult) {
        this.appraiseResult = appraiseResult;
    }

    public String getAppraiseResultName() {
        return appraiseResultName;
    }

    public void setAppraiseResultName(String appraiseResultName) {
        this.appraiseResultName = appraiseResultName;
    }

    public String getAppraise() {
        return appraise;
    }

    public void setAppraise(String appraise) {
        this.appraise = appraise;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getSuggestItem() {
        return suggestItem;
    }

    public void setSuggestItem(String suggestItem) {
        this.suggestItem = suggestItem;
    }

    public String getSuggestItemName() {
        return suggestItemName;
    }

    public void setSuggestItemName(String suggestItemName) {
        this.suggestItemName = suggestItemName;
    }

    @Override
    public String toString() {
        return "SuggestRecord{" +
        ", id=" + id +
        ", status=" + status +
        ", ownerId=" + ownerId +
        ", houseId=" + houseId +
        ", suggestTime=" + suggestTime +
        ", description=" + description +
        ", acceptTime=" + acceptTime +
        ", acceptUser=" + acceptUser +
        ", resultDescription=" + resultDescription +
        ", delFlag=" + delFlag +
        "}";
    }
}
